package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.Reservation;

import java.util.List;
import java.util.Map;

/**
 * @author Waker
 * @description:
 * @create 2025-09-13-21:55
 */
public interface IMemberReservationService extends IService<Reservation> {

    /**
     * 查询当天取消预约数量
     * @return
     */
    Integer getCancelledReservationCount();

    /**
     * 查询每个时间段剩余预约次数
     * @param time
     * @return
     */
    List<Map<String, Object>> countByTime(Long time);

    /**
     * 新增预约
     * @param reservation
     */
    void saveReservation(Reservation reservation);

    /**
     * 查询预约列表
     * @param reservation
     * @return
     */
    List<Reservation> seleltReservationList(Reservation reservation);

    /**
     * 取消预约
     * @param id
     */
    void cancelReservation(Long id);

    /**
     * 更新预约状态
     */
    void updateReservationStatus();
}
